﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using phudieuhungthinh.DAL;

namespace phudieuhungthinh.BL.Model
{
    public partial class CategoryModel
    {
        public Category MapCategoryToUpdate()
        {
            this._category.ID = this._id;
            this._category.Name = this._name;
            this._unique_id = this.UniqueID;
            this._url = this.Url;
            this._category.ImageUrl = this._image_url;
            this._category.ThumbUrl = this._thumb_url;
            this._category.IsActived = this._is_actived;
            return _category;
        }
    }
}
